home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / bin / mint-decompress < prev    next >
Encoding:
Text File  |  2007-05-16  |  317 b   |  19 lines

  1. #!/usr/bin/env python
  2.  
  3. import sys
  4. import os
  5.  
  6. mintfile = sys.argv[1]
  7. mintfile = str.strip(mintfile)
  8. directory = str.replace(mintfile, ".mint", "")
  9.  
  10. os.system("mkdir " + directory)
  11. os.system("cp " + mintfile + " " + directory + "/")
  12. os.chdir(directory)
  13. os.system("tar zxvf " + mintfile)
  14. os.system("rm " + mintfile)
  15.  
  16.  
  17.  
  18.  
  19.